package com.infore.dataReceiving.enums;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 日志与状态量枚举
 * @author Cold
 *
 */
public enum EquipParamEnum {
    i13001("i13001","测试最大量程","mg/L"),
    i13002("i13002","现场端修约小数位" ,""),
    i13003("i13003","测量间隔" ,"min"),
    i13004("i13004","仪器设定值" ,"℃"),
    i13005("i13005","仪器设定值" ,"min"),
    i13006("i13006","空白校准时间" ,""),
    i13007("i13007","曲线截距" ,""),
    i13008("i13008","曲线斜率" ,""),
    i13009("i13009","仪器检出限" ,""),
    i13010("i13010","测量信号值" ,""),
    i13011("i13011","线性相关系数（R²）" ,""),
    i13012("i13012","二次多项式系数" ,""),
    i13013("i13011","标准样校准时间" ,"");

	private EquipParamEnum(String code, String desc, String unit) {
		this.code = code;
		this.desc = desc;
		this.unit = unit;
	}

	private String code;
	private String desc;
	private String unit;
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }
    public String getUnit() {
        return unit;
    }
    public void setUnit(String unit) {
        this.unit = unit;
    }

    public static EquipParamEnum getDesc(String code) {
        for (EquipParamEnum ls : EquipParamEnum.values()) {
            if (ls.getCode().equals(code)) {
                return ls;
            }
        }
        return null;
    }
}
